<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Java 基础知识点文章汇总 | 无人深空</title><meta name="keywords" content="Java"><meta name="author" content="zcm"><meta name="copyright" content="zcm"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="合集JavaGuide（学习&amp;&amp;面试指南） Java 全栈知识体系 JUC 和 JVM 总结 锁Java 中的锁分类 互斥锁 vs 自旋锁 volatile 详解 volatile 和 synchronized 的区别 i++在两个线程分别执行100次，最大值和最小值分别多少 synchronized 与 ReentrantLock 的区别 Java 对象锁和类锁全面解析 深入理解">
<meta property="og:type" content="article">
<meta property="og:title" content="Java 基础知识点文章汇总">
<meta property="og:url" content="https://gitee.com/zcmmmm/zcmmmm/2023/04/17/Java%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E7%82%B9%E6%96%87%E7%AB%A0%E6%B1%87%E6%80%BB/index.html">
<meta property="og:site_name" content="无人深空">
<meta property="og:description" content="合集JavaGuide（学习&amp;&amp;面试指南） Java 全栈知识体系 JUC 和 JVM 总结 锁Java 中的锁分类 互斥锁 vs 自旋锁 volatile 详解 volatile 和 synchronized 的区别 i++在两个线程分别执行100次，最大值和最小值分别多少 synchronized 与 ReentrantLock 的区别 Java 对象锁和类锁全面解析 深入理解">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://study-record-images.oss-cn-beijing.aliyuncs.com/Java.png">
<meta property="article:published_time" content="2023-04-17T14:47:24.000Z">
<meta property="article:modified_time" content="2023-05-18T11:45:08.142Z">
<meta property="article:author" content="zcm">
<meta property="article:tag" content="Java">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://study-record-images.oss-cn-beijing.aliyuncs.com/Java.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://gitee.com/zcmmmm/zcmmmm/2023/04/17/Java%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E7%82%B9%E6%96%87%E7%AB%A0%E6%B1%87%E6%80%BB/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":false,"languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":200},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: {"chs_to_cht":"你已切换为繁体","cht_to_chs":"你已切换为简体","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#1f1f1f","position":"bottom-left"},
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Java 基础知识点文章汇总',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2023-05-18 19:45:08'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><link rel="stylesheet" href="/css/categories.css?v1"><link rel="stylesheet" href="/css/navigation.css?v1"><link rel="stylesheet" href="/css/custom.css?v1"><meta name="generator" content="Hexo 6.3.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://s2.loli.net/2022/09/22/36LN4kcjYOd9HT8.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">43</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">25</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">11</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="not-top-img" id="page-header"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">无人深空</a></span><div id="menus"></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div><div id="nav-right"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i></a></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav></header><main class="layout" id="content-inner"><div id="post"><div id="post-info"><h1 class="post-title">Java 基础知识点文章汇总</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-04-17T14:47:24.000Z" title="发表于 2023-04-17 22:47:24">2023-04-17</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-05-18T11:45:08.142Z" title="更新于 2023-05-18 19:45:08">2023-05-18</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/Java/">Java</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">945</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>3分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="Java 基础知识点文章汇总"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div><article class="post-content" id="article-container"><h3 id="合集"><a href="#合集" class="headerlink" title="合集"></a>合集</h3><p><a target="_blank" rel="noopener" href="https://javaguide.cn/home.html">JavaGuide（学习&amp;&amp;面试指南）</a></p>
<p><a target="_blank" rel="noopener" href="https://www.nenggz.com/">Java 全栈知识体系</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/Curryxin/p/15614643.html">JUC 和 JVM 总结</a></p>
<h3 id="锁"><a href="#锁" class="headerlink" title="锁"></a>锁</h3><p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/112649693">Java 中的锁分类</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/297929103">互斥锁 vs 自旋锁</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/laipimei/p/11857786.html">volatile 详解</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/suifeng3051/article/details/52611233">volatile 和 synchronized 的区别</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/will130/article/details/48714343">i++在两个线程分别执行100次，最大值和最小值分别多少</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/126085068">synchronized 与 ReentrantLock 的区别</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/1501912">Java 对象锁和类锁全面解析</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/1465413">深入理解 synchronized 底层原理</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/1533608">单例模式–双重检验锁真的线程安全吗</a></p>
<h3 id="集合"><a href="#集合" class="headerlink" title="集合"></a>集合</h3><p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/zeroingToOne/p/9522814.html">ArrayList的扩容机制</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/114363420">HashMap 的扩容机制</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/study-everyday/p/6430462.html">ConcurrentHashMap 原理</a></p>
<p><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1QS4y1u7gG">ConcurrentHashMap 底层实现原理 - B站</a></p>
<h3 id="进程、线程"><a href="#进程、线程" class="headerlink" title="进程、线程"></a>进程、线程</h3><p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/shiqisir/p/10792133.html">进程控制块( PCB )</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/sherlock-lin/p/14538083.html">线程同步的几种方式</a></p>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7021888536097849358">进程间通信的 7 种方式</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/theRhyme/p/14061698.html">协程的原理以及与线程的区别</a></p>
<p><a target="_blank" rel="noopener" href="https://www.zhihu.com/question/22397613">线程崩溃是否会造成进程崩溃</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/a718515028/article/details/114985255">Thread.sleep(0) 的作用</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/151041227">Thread 启动线程的 start 方法能执行多次吗</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/breakout_alex/article/details/105454980">java 线程池</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/347202085">Java 实现生产者和消费者的几种方式</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/1334756">进程与线程的联系和区别</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/1585832">Java-多线程：Callable 接口和 Runnable 接口之间的区别</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/zhuimeng_by/article/details/107891268">合理配置线程池核心线程数（IO密集型和CPU密集型）</a></p>
<h3 id="内存"><a href="#内存" class="headerlink" title="内存"></a>内存</h3><p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/ClassNotFoundException/p/7082037.html">Java 内存布局</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/e2e8f7a35445">JVM 的三色标记算法</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/462665724">Java 中堆和栈的区别</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/liulangcheshou/article/details/91448156">为什么 JVM 规范中，程序计数器不会发生 OutOfMemoryError</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/113551358">Java 堆内存是线程共享的！面试官：你确定吗</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/xiaoxi/p/6486852.html">Java 垃圾回收（GC）机制详解</a></p>
<p><a target="_blank" rel="noopener" href="https://www.codenong.com/cs106477971/">垃圾回收机制与调用 System.gc() 区别</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/1354351">Java 的强引用，软引用，弱引用，虚引用及其使用场景</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/pipci/p/12390814.html">函数调用与系统调用区别</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/peterYong/p/6556619.html">内存管理</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/liuxiao723846/article/details/89814005">DirectByteBuffer 堆外内存申请、回收</a></p>
<h3 id="类加载"><a href="#类加载" class="headerlink" title="类加载"></a>类加载</h3><p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/ace2aa692f96">Java 类加载全过程</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/354294187">Java 类的初始化顺序</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/269214344">JVM 双亲委派机制详解</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/7243edfece1a">双亲委派机制的优势与劣势</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/u013568373/article/details/94040135">loadClass() 和 forName() 的区别</a></p>
<h3 id="其他"><a href="#其他" class="headerlink" title="其他"></a>其他</h3><p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/xinruyi/p/11537963.html">Java 如何对一个对象进行深拷贝</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/zc22/p/3484981.html">Java的一个高性能快速深拷贝方法</a></p>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/6844904021627502599">你知道如何实现高性能版本的深拷贝嘛？</a></p>
<hr>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/xiaowangbangzhu/p/14649502.html">java 内部类和静态内部类和匿名内部类的区别</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_28181131/article/details/82258877">Java 中静态内部类的加载时机</a></p>
<hr>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/102744180">ThreadLocal，一篇文章就够了</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/166259550">大厂面试必问之 ThreadLocal 原理篇</a></p>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7042211997743579144">ThreadLocal 的介绍 + 经典应用场景</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/Summer_And_Opencv/article/details/104632272">ThreadLocal——hash 冲突与内存泄漏</a></p>
<hr>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/418358900">Java 基础不简单，泛型很重要</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/u013096088/article/details/69815631">Java 泛型方法重载问题</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_26971305/article/details/53938993">Java 泛型方法重写问题</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_40587575/article/details/78858249">Java 泛型通配符</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/robothy/p/13949788.html">Java 泛型原理</a></p>
<hr>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/49d2c3975c56">java-异常体系</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qfguan/article/details/121226260">对面向对象的理解</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/94770324">Java 基础之接口与抽象类的区别</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/whisperbb/p/11774603.html">递归和迭代的区别、联系、优缺点</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/107267834">Java 中的 final 字段真的不能修改么</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/devilwind/p/8635946.html">java 为什么匿名内部类的参数引用时 final</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/yaqi007/articles/2132093.html">java 引用与 C 指针的异同</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_42937522/article/details/106563188">Java 理解误区——方法的重载是多态性的一种体现？</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_45325628/article/details/123101103">什么是 CAP？强一致性？最终一致性？</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_57907028/article/details/117367380">Lambda 表达式的本质</a></p>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7031368690624888869">Lambda 实现原理</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/xinxiucan/p/7832368.html">CDN 概念基本介绍</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/yetaoii/article/details/107493600">Java 原子类</a></p>
<h3 id="Spring"><a href="#Spring" class="headerlink" title="Spring"></a>Spring</h3><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/hanjiaqian/article/details/120501741">Spring 事务失效的 12 种场景</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/wyq178/p/11415877.html">Spring Bean 加载流程浅析</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/9ea61d204559">Spring Bean 加载流程详解</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/daimzh/p/13256413.html">Spring Bean 循环依赖1</a></p>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7201785917061021751">Spring Bean 循环依赖2</a></p>
<p>Spring 内嵌事务：加了 <code>@Transactional</code> 注解的方法中调用另一个加了该事务注解的方法</p>
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Service</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Test</span> &#123;</span><br><span class="line">    <span class="meta">@Transactional</span></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">methodA</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.methodB();</span><br><span class="line">    &#125;</span><br><span class="line">    </span><br><span class="line">    <span class="meta">@Transactional</span></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">methodB</span><span class="params">()</span> &#123;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/jy02268879/article/details/84322459">Spring 事务传播机制</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/tuyang1129/p/12878549.html">Spirng AOP 实现原理——动态代理</a></p>
<p><a href="">Spring IOC 实现原理——依赖注入 DI</a></p>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7022507865701089317">@Resource 和 @AutoWired 的区别</a></p>
<hr>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7022122117722275848">MyBatis Mapper 文件详解</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/pangdajin/p/9786317.html">MyBatis 中的命名空间 namespace 的作用</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/629263481">MyBatis 面向接口编程1</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/chenxueling/p/5474767.html">MyBatis 面向接口编程2</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/east7/p/14697785.html">MyBatis 面向接口编程原理</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/Zack_tzh/article/details/107505184">MyBatis 多表查询</a></p>
<hr>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/xinzhifu1/article/details/106356958">拦截器和过滤器的 6 大区别</a></p>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7069699194235125773">Java 三大器之拦截器实现原理</a></p>
<h4 id="实战"><a href="#实战" class="headerlink" title="实战"></a>实战</h4><p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/353561846">从零开始开发一个 Spring Boot Starter</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/fishpro/p/spring-boot-study-helloworld.html">SpringBoot hello world</a></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="https://gitee.com/zcmmmm/zcmmmm">zcm</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://gitee.com/zcmmmm/zcmmmm/2023/04/17/Java%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E7%82%B9%E6%96%87%E7%AB%A0%E6%B1%87%E6%80%BB/">https://gitee.com/zcmmmm/zcmmmm/2023/04/17/Java%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E7%82%B9%E6%96%87%E7%AB%A0%E6%B1%87%E6%80%BB/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://gitee.com/zcmmmm/zcmmmm" target="_blank">无人深空</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/Java/">Java</a></div><div class="post_share"><div class="social-share" data-image="https://study-record-images.oss-cn-beijing.aliyuncs.com/Java.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2023/05/11/%E7%BD%91%E7%BB%9CIO/"><img class="prev-cover" src="https://study-record-images.oss-cn-beijing.aliyuncs.com/Java/Redis/Redis.png" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">网络 IO</div></div></a></div><div class="next-post pull-right"><a href="/2023/04/17/%E7%AE%97%E6%B3%95%E3%80%81%E6%99%BA%E5%8A%9B-%E6%96%87%E7%AB%A0%E6%B1%87%E6%80%BB/"><img class="next-cover" src="https://study-record-images.oss-cn-beijing.aliyuncs.com/Algorithm.png" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">算法、智力题文章汇总</div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span>相关推荐</span></div><div class="relatedPosts-list"><div><a href="/2023/03/03/Java%E5%87%BD%E6%95%B0%E5%BC%8F%E7%BC%96%E7%A8%8B/" title="Java函数式编程"><img class="cover" src="https://study-record-images.oss-cn-beijing.aliyuncs.com/Java/FunctionalProgramming/Functional%20programmi.png" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2023-03-03</div><div class="title">Java函数式编程</div></div></a></div><div><a href="/2022/09/23/%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%AD%A6-Java-01/" title="零基础学-Java-01"><img class="cover" src="https://study-record-images.oss-cn-beijing.aliyuncs.com/Java/%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%AD%A6Java/Cover.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-09-23</div><div class="title">零基础学-Java-01</div></div></a></div><div><a href="/2022/09/23/%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%AD%A6-Java-02/" title="零基础学-Java-02"><img class="cover" src="https://study-record-images.oss-cn-beijing.aliyuncs.com/Java/%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%AD%A6Java/Cover.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-09-23</div><div class="title">零基础学-Java-02</div></div></a></div><div><a href="/2022/09/23/%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%AD%A6-Java-03/" title="零基础学-Java-03"><img class="cover" src="https://study-record-images.oss-cn-beijing.aliyuncs.com/Java/%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%AD%A6Java/Cover.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-09-23</div><div class="title">零基础学-Java-03</div></div></a></div></div></div></div><div class="aside-content" id="aside-content"><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content is-expand"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%90%88%E9%9B%86"><span class="toc-text">合集</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%94%81"><span class="toc-text">锁</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%9B%86%E5%90%88"><span class="toc-text">集合</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%BF%9B%E7%A8%8B%E3%80%81%E7%BA%BF%E7%A8%8B"><span class="toc-text">进程、线程</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%86%85%E5%AD%98"><span class="toc-text">内存</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%B1%BB%E5%8A%A0%E8%BD%BD"><span class="toc-text">类加载</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%85%B6%E4%BB%96"><span class="toc-text">其他</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Spring"><span class="toc-text">Spring</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%AE%9E%E6%88%98"><span class="toc-text">实战</span></a></li></ol></li></ol></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2022 - 2023 By zcm</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js"></script><script src="/js/search/local-search.js"></script><div class="js-pjax"></div><script src="/js/categories.js?v1"></script><script src="/js/navigation.js?v1"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>